home *** CD-ROM | disk | FTP | other *** search
Wrap
<!-- #include file="i_utils.asp" --> <% %> <% page_heading = "WELCOME" %> <% dim CatID dim DateAdded dim LinkID dim Title dim whats_new_sql dim whats_hot_sql dim whats_cool_sql dim default_section dim privacy_section dim features dim upgrade dim valueclick_ad_code dim blurb sub request_whats_new ''' request expected input parameters for this form CatID = request("CatID") DateAdded = request("DateAdded") LinkID = request("LinkID") Title = request("Title") end sub sub request_whats_hot ''' request expected input parameters for this form CatID = request("CatID") LinkID = request("LinkID") Title = request("Title") end sub sub request_whats_cool ''' request expected input parameters for this form CatID = request("CatID") LinkID = request("LinkID") Title = request("Title") end sub sub validate_whats_new ''' request and validate data entered from this form CatID = trim(request("CatID")) DateAdded = trim(request("DateAdded")) if DateAdded <> "" AND (not isdate(DateAdded)) then error_list.add "488395date","DateAdded must be a valid date (MM/DD/YY)." b_error = true end if LinkID = trim(request("LinkID")) Title = trim(request("Title")) end sub sub validate_whats_hot ''' request and validate data entered from this form CatID = trim(request("CatID")) LinkID = trim(request("LinkID")) Title = trim(request("Title")) end sub sub validate_whats_cool ''' request and validate data entered from this form CatID = trim(request("CatID")) LinkID = trim(request("LinkID")) Title = trim(request("Title")) end sub sub db_select_whats_new whats_new_sql = "SELECT TOP 8 " & _ "CatID, " & _ "DateAdded, " & _ "LinkID, " & _ "Title FROM Links " & _ "WHERE (Display=TRUE) AND (" & Date & " - DateAdded) < 5 " & _ "ORDER BY DateAdded DESC" end sub sub db_delete_whats_new sql = "DELETE FROM " & _ "" 'response.write sql on error resume next cn.Execute(sql) if err.number <> 0 then b_error = true end if on error goto 0 end sub sub db_select_whats_hot whats_hot_sql = "SELECT TOP 8 " & _ "CatID, " & _ "DateAdded, " & _ "LinkID, " & _ "Title FROM Links " & _ "ORDER BY ClickThrus DESC" end sub sub db_delete_whats_hot sql = "DELETE FROM " & _ "" 'response.write sql on error resume next cn.Execute(sql) if err.number <> 0 then b_error = true end if on error goto 0 end sub sub db_select_whats_cool whats_cool_sql = "SELECT TOP 8 " & _ "CatID, " & _ "DateAdded, " & _ "LinkID, " & _ "Title FROM Links " & _ "ORDER BY AvgRating DESC" end sub sub db_delete_whats_cool sql = "DELETE FROM " & _ "" 'response.write sql on error resume next cn.Execute(sql) if err.number <> 0 then b_error = true end if on error goto 0 end sub do_search = request("do_search") ''' request form keys ''' request action action = lcase(request("action")) ''' action case handler select case action end select ' no action was specified, so handle the default case(s) db_select_whats_cool db_select_whats_hot db_select_whats_new %> <!-- #include file='i_header.asp' --> <!-- #include file='i_menu.asp' --> <% display_errs display_msg %> <table STYLE="{padding:3px;}"> <tr valign=top> <td width='170' style="{padding:5px;}"> <!-- start left column --> <% page_no = request("page_no") if page_no = "" then page_no = 1 if whats_new_sql <> "" then cmd.CommandText = whats_new_sql rs.Filter = "" rs.CursorLocation = 3 rs.CacheSize = 5 rs.Open cmd if not rs.EOF then rs.MoveFirst max_count = cInt(rs.PageCount) num_recs = rs.RecordCount rs.AbsolutePage = page_no results = true else results = false rs.Close end if else results = false end if rec_count = 0 %> <table class='headerTable'> <tr> <td class='headerTD'> New links </td> </tr> </table> <% if results = true then %> <table > <form name="whats_new" action="default.asp" method="get" > <% do while not rs.EOF ':: read db record on error resume next CatID = rs("CatID") DateAdded = rs("DateAdded") LinkID = rs("LinkID") Title = rs("Title") on error goto 0 %> <td class='dataTD' > <% title = left(title,20) %><a href="links.asp?CatId=<% =CatId %>"><% =Title %></a>.. </td> </tr> <% rs.MoveNext rec_count = rec_count + 1 loop rs.Close %> </form> </table> <% else %> <% end if %> <br><br> <% page_no = request("page_no") if page_no = "" then page_no = 1 if whats_hot_sql <> "" then cmd.CommandText = whats_hot_sql rs.Filter = "" rs.CursorLocation = 3 rs.CacheSize = 5 rs.Open cmd if not rs.EOF then rs.MoveFirst max_count = cInt(rs.PageCount) num_recs = rs.RecordCount rs.AbsolutePage = page_no results = true else results = false rs.Close end if else results = false end if rec_count = 0 %> <table class='headerTable'> <tr> <td class='headerTD'> Popular links </td> </tr> </table> <% if results = true then %> <table > <form name="whats_hot" action="default.asp" method="get" > <% do while not rs.EOF ':: read db record on error resume next CatID = rs("CatID") LinkID = rs("LinkID") Title = rs("Title") on error goto 0 %> <td class='dataTD' > <% title = left(title,22) %><a href="links.asp?CatId=<% =CatId %>"><% =Title %></a>.. </td> </tr> <% rs.MoveNext rec_count = rec_count + 1 loop rs.Close %> </form> </table> <% else %> <% end if %> <br><br> <% page_no = request("page_no") if page_no = "" then page_no = 1 if whats_cool_sql <> "" then cmd.CommandText = whats_cool_sql rs.Filter = "" rs.CursorLocation = 3 rs.CacheSize = 5 rs.Open cmd if not rs.EOF then rs.MoveFirst max_count = cInt(rs.PageCount) num_recs = rs.RecordCount rs.AbsolutePage = page_no results = true else results = false rs.Close end if else results = false end if rec_count = 0 %> <table class='headerTable'> <tr> <td class='headerTD'> Cool links </td> </tr> </table> <% if results = true then %> <table > <form name="whats_cool" action="default.asp" method="get" > <% do while not rs.EOF ':: read db record on error resume next CatID = rs("CatID") LinkID = rs("LinkID") Title = rs("Title") on error goto 0 %> <td class='dataTD' > <% title = left(title,22) %><a href="links.asp?CatId=<% =CatId %>"><% =Title %></a>.. </td> </tr> <% rs.MoveNext rec_count = rec_count + 1 loop rs.Close %> </form> </table> <% else %> <% end if %> <!-- end left column --> </td> <td style="{padding:0px;}"> <table cellspacing=0 style={padding:0px;width:'100%';}> <tr> <td > <% if request("section") = "" then %><!--#include file='i_links_yahoo.asp' --><% end if %> </td> </tr> <tr> <td > <% if request("section") = "privacy" then %><!-- #include file='i_privacy.asp' --><% end if %> </td> </tr> </table> <TABLE> <TR> <TD style="{padding:6px;}"> <table cellspacing=1 border=0 bgcolor="#000000"> <tr> <td style="{padding:6px;color:#222222}" bgcolor="#FFFFFF"> This site is a demonstration of the complete, easy-to-modify PortalApp system designed for broad, vertical(vortals) and niche portals. With this portal you can create and manage site content, links, discussion forums, classified ads, surveys and more. The entire portal application is another robust demonstration of <A href='http://www.aspapp.com' style='{color:#000000}'>rapid-apps development with ASPapp.com</A>. To demonstrate the portal administration areas, <A style='{color:#000000}' href='login.asp?user_name=admin&password=admin&action=login'>click here</A>, or <A href='login.asp'>login</A> using:<br> username: admin<br> password: admin<br> <br><br> The fonts and colors used throughout are based on standard .css style sheets, so the entire design is easy to change... <a href='default.asp?skin_number=0' style='{color:#000000}' >standard</A> | <a href='default.asp?skin_number=1' style='{color:#000000}' >example 1</A> | <a href='default.asp?skin_number=2' style='{color:#000000}' >example 2</A> | <a href='default.asp?skin_number=3' style='{color:#000000}' >example 3</A> <br> <br><br> <b>User, Link & Content Management</b><br> <ul> Yahoo style link display and management. Create and manage multple category levels, and enable user listing submission. Administrator can approve listings. <ul> <li>organize hierarchical categories of links <li>yahoo style searching <li>user listing submission <li>approve, edit, administer listings <li>HTML content authoring <li> </ul> </ul> <p> This is the free, non-supported version. For a full-featured portal with extended functionality, visit <a href='http://www.aspapp.com'>ASPapp.com</A> <p align=right><A href="http://www.aspapp.com"><img src="http://www.aspapp.com/apps/images/aspapplogo_sm.gif" width=81 height=36 border=0 alt="generated by aspapp.com"></a></p> </td> </tr> </table> </TD> </TD> </TABLE> <!-- end center col --> </td> </td> <td width='150' STYLE="{padding:5px;}"> <!-- start right column --> <table class='headerTable'> <tr> <td class='headerTD'> Upgrade </td> </tr> </table> Extended your portal's features...<br><br> <li>WYSIWYG content authoring <li>survey/poll manager <li>rate/rank listings <li>"featured" content <li>who's online <li>user messaging <li>traffic statistics <li>multiple content layouts (ie; articles, news, etc..) <li>discussion forums <li>classified ads service <li>image gallery <li>file/image uploading <li>password lookup <li>newsletter management <li>email confirmation <li>personalization <li>RFP/bidding module <li>technical support <br> Visit <a href='http://www.aspapp.com'>ASPapp</A> for more information <br><br> <table align="center" width="100%" style="{padding:1px;border-width:1px;border-style:solid;border-color:#000000}" class="blue_md"> <tr><td colspan=2 class="topnav">Visit Our Sponsor</td></tr> </table> <p align=center> <br> <!-- VC active --> <SCRIPT LANGUAGE="JavaScript"> <!-- // ValueParameters ValueHost = "hs0000062"; ValueLoaded = false; ValueID = "valueid"; ValueVersion = "1.1"; ValueWidth = 125; ValueHeight = 125; //--> </SCRIPT> <SCRIPT LANGUAGE="Javascript" SRC="http://oz.valueclick.com/jsmaster"></SCRIPT> <SCRIPT LANGUAGE="JavaScript"> <!-- if (ValueLoaded) ValueShowAd(); //--> </SCRIPT> <NOSCRIPT> <A HREF="http://kansas.valueclick.com/redirect?host=hs0000062&size=125x125&b=indexpage&v=0" TARGET="_top"><IMG BORDER="0" WIDTH="125" HEIGHT="125" ALT="Click here to visit our sponsor" SRC="http://kansas.valueclick.com/cycle?host=hs0000062&size=125x125&b=indexpage&noscript=1"></A> </NOSCRIPT> <!-- vc active --> <br><br> <table align="center" width="100%" style="{padding:1px;border-width:1px;border-style:solid;border-color:#000000}" class="blue_md"> <tr><td colspan=2 class="topnav">Building a Portal?</td></tr> </table> <div align=left> Do you need a portal engine for your topic, regional, or industry specific site? This portal can be customized to include statistics, personlization, content authoring, and other custom features. <br><br> To find out more, or to download other free source code, visit <A href='http://www.aspapp.com'>ASPapp.com</A> </div> <br><br> <! -- end right column --> </td> </tr> </table> <!-- #include file=i_footer.asp --> <% ':: assure that any db resources are freed on error resume next rs.Close set rs = NOTHING cn.Close set cn = NOTHING user_cn.Close set user_cn = NOTHING on error goto 0 %>